package com.dpf.api.common;

public class BaseResponse {
    Long code;
    String message;
    Object data;

    public BaseResponse(Long code, String msg) {
        this.code = code;
        this.message = msg;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Long getCode() {
        return code;
    }

    public void setCode(Long code) {
        this.code = code;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public BaseResponse(Long code, String msg, Object data) {
        this.code = code;
        this.message = msg;
        this.data = data;
    }

    public BaseResponse(Object data) {
        this.code = 0L;
        this.message = "成功";
        this.data = data;
    }

    public BaseResponse() {
        this.code =0L;
        this.message = "成功";
    }
}
